<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib 	prefix="s" 			uri="/struts-tags"%>
	<s:if test='ajaxFlag == "Y"'>
		<script type="text/javascript">
			document.getElementById("ajaxFlag").value = "N";
			var befor = <s:property value ="beforArgs_i"/>; 
			var after = <s:property value ="afterArgs_i"/>;
						
			<s:if test='msg != "FAILE"'>				
				<s:if test='msg == "LIMIT"'>
					alert("마감 선택한 개수 : "+befor+"\n\n성공적으로 처리한 개수 :"+after);
					dojo.event.topic.publish("ajax_list");
				</s:if>
				<s:else>
					alert("<s:text name="alert.message.saved" />");
					dojo.event.topic.publish("ajax_list");
				</s:else>
			</s:if>
			<s:else>
				alert("<s:text name="alert.message.notSave" />");
				dojo.event.topic.publish("ajax_list");
			</s:else>
			
		</script>
	</s:if>
	<s:elseif test='ajaxFlag == "DELETE"'>
		<script type="text/javascript">
			document.getElementById("ajaxFlag").value = "N";
			alert("<s:text name="alert.message.deleted" />");
			dojo.event.topic.publish("ajax_list");
		</script>
	</s:elseif>
